Adwaita: Allow separators on individual list items
authorMatthias Clasen <mclasen@redhat.com>
Fri, 12 Jun 2020 13:20:46 +0000 (09:20 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 12 Jun 2020 13:22:36 +0000 (09:22 -0400)
Allow setting a .separator style class on list items
to put a separator before the item.

gtk/theme/Adwaita/_common.scss

index 748702eb891b8515e44718c409ead94aa301e545..d2ed052b06a83c59c20b6651aec72bb225070466 100644 (file)
@@ -3012,9 +3012,11 @@ list {
   > row.expander { padding: 0px; }
   > row.expander .row-header { padding: 2px; }
 
+  &.horizontal row.separator:not(:first-child),
   &.separators.horizontal row:not(:first-child) {
     border-left: 1px solid $borders_color;
   }
+  &:not(.horizontal) row.separator:not(:first-child),
   &.separators:not(.horizontal) row:not(:first-child) {
     border-top: 1px solid $borders_color;
   }